<template>
  <div class="LevelRules">
    <div class="card">
      说明：等级是XXXXXXXXXXXXXXXXXXXXXXXXX通过XXXXXXXXXXXX获取
    </div>
    <div class="body">
      <div class="thead">
        <div class="left">等级</div>
        <div class="right">XX分</div>
      </div>
      <div class="item" v-for="(item, index) in option" :key="index">
        <div class="left">{{ item.name }}</div>
        <div class="right">{{ item.text }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      option: [
        {
          name: "星使1",
          text: "1000分",
        },
        {
          name: "星使2",
          text: "1000分",
        },
        {
          name: "星使3",
          text: "1000分",
        },
        {
          name: "月神1",
          text: "1000分",
        },
        {
          name: "月神2",
          text: "1000分",
        },
        {
          name: "月神3",
          text: "1000分",
        },
        {
          name: "太阳神1",
          text: "1000分",
        },
        {
          name: "太阳神2",
          text: "1000分",
        },
        {
          name: "太阳神3",
          text: "1000分",
        },
        {
          name: "众神之王",
          text: "1000分",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.LevelRules {
  padding: 15px;
  .card {
    background: #f5f5f5;
    opacity: 1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 500;
    line-height: 20px;
    color: #666666;
  }
  .body {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 12px;
    .thead,
    .item {
      display: flex;
      .left,
      .right {
        width: 50%;
        line-height: 44px;
        font-size: 15px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #2f2550;
        background: #d0ccff;
        text-align: center;
      }
      .right {
        margin-left: 1px;
      }
    }
    .item .left,
    .item .right {
      background: #f5f2ff;
      margin-top: 1px;
    }
  }
}
</style>